<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      tidy-html5-5.6.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;11.&nbsp;General Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="telepathy-mission-control.html" title=
          "telepathy-mission-control-5.16.5">Prev</a>
          <p>
            telepathy-mission-control-5.16.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="time.html" title="Time-1.9">Next</a>
          <p>
            Time-1.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="tidy-html5" name="tidy-html5"></a>tidy-html5-5.6.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Tidy HTML5
        </h2>
        <p>
          The <span class="application">Tidy HTML5</span> package contains a
          command line tool and libraries used to read HTML, XHTML and XML
          files and write cleaned up markup. It detects and corrects many
          common coding errors and strives to produce visually equivalent
          markup that is both W3C compliant and compatible with most
          browsers.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/htacg/tidy-html5/archive/5.6.0/tidy-html5-5.6.0.tar.gz">
                https://github.com/htacg/tidy-html5/archive/5.6.0/tidy-html5-5.6.0.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 85c8a163d9ece6a02fe12bc9bddbc455
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 649 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 11 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Tidy HTML5 Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="cmake.html" title=
          "CMake-3.17.0">CMake-3.17.0</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="libxslt.html" title=
          "libxslt-1.1.34">libxslt-1.1.34</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/tidy">http://wiki.linuxfromscratch.org/blfs/wiki/tidy</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Tidy HTML5
        </h2>
        <p>
          Install <span class="application">Tidy HTML5</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">cd build/cmake &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release  \
      -DBUILD_TAB2SPACE=ON        \
      ../..    &amp;&amp;

make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -m755 tab2space /usr/bin</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>-DCMAKE_BUILD_TYPE=Release</code></em>:
          This switch is used to build the release library without any debug
          `assert` in the code.
        </p>
        <p>
          <em class="parameter"><code>-DBUILD_TAB2SPACE=ON</code></em>: This
          switch is used to enable building the <span class=
          "command"><strong>tab2space</strong></span> utility.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Tidy HTML5
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006453458192" name="idm140006453458192"></a>Config
            Files
          </h4>
          <p>
            The absolute path of the file specified in <code class=
            "envar">HTML_TIDY</code>.
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm140006453456496" name=
            "idm140006453456496"></a>Configuration Information
          </h4>
          <p>
            The default configuration options can be set in the file defined
            in <code class="envar">HTML_TIDY</code>. Additional configuration
            options can be passed to <span class=
            "command"><strong>tidy</strong></span> via command line
            parameters or the <code class="option">-config
            &lt;file&gt;</code> parameter.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">tab2space and tidy</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libtidy.so and libtidys.a</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/doc/tidy-5.6.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="tab2space" name="tab2space"></a><span class=
                    "term"><span class=
                    "command"><strong>tab2space</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a utility to expand tabs and ensure consistent line
                    endings.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="tidy" name="tidy"></a><span class=
                    "term"><span class=
                    "command"><strong>tidy</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    validates, corrects, and pretty-prints HTML files.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libtidy" name="libtidy"></a> <span class=
                    "term"><code class="filename">libtidy.so and
                    libtidys.a</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    library provides the <span class="application">Tidy
                    HTML5</span> API functions to <span class=
                    "command"><strong>tidy</strong></span> and can also be
                    called by other programs.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-18 05:00:14 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="telepathy-mission-control.html" title=
          "telepathy-mission-control-5.16.5">Prev</a>
          <p>
            telepathy-mission-control-5.16.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="time.html" title="Time-1.9">Next</a>
          <p>
            Time-1.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
